/**
 * 环境配置文件
 * 三个环境
 * 开发环境
 * 测试环境
 * 上线环境
 */
// 当前环境
const env = import.meta.env.MODE || 'prod'

const EnvConfig = {
  development: {
    baseApi: '/api',
    mockApi:
      'https://www.fastmock.site/mock/05ad57c486afbf0c443261d05d146ad7/api',
  },
  test: {
    baseApi: '//test.future.com/api',
    mockApi:
      'https://www.fastmock.site/mock/05ad57c486afbf0c443261d05d146ad7/api',
  },
  pro: {
    baseApi: '//futurn.com/api',
    mockApi:
      'https://www.fastmock.site/mock/05ad57c486afbf0c443261d05d146ad7/api',
  },
}

export default {
  env,
  mock: true, //总开关
  ...EnvConfig[env], //解构获取环境
}
